package name.jiaosha.air.company.domain;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ali8ba.Domain;
/**
 * 合作单位
 * @author xu
 *
 */
@Entity
@Table(name="partner")
public class Partner extends Domain{

	/**
	 * 
	 */
	private static final long serialVersionUID = 5477117339377316040L;

	private Integer id;
	
	private String companyName;
	
	private String pinyin;
	
	private String linkTel;
	
	private String linkMam;
	
	private String address;
	
	public Partner(){
		
		
	}
	@Id()
	@Column(name = "id", unique = true, nullable = false, precision = 11)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}


	@Basic()
	@Column(name = "companyname", length = 50)
	public String getCompanyName() {
		return companyName;
	}
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	
	@Basic()
	@Column(name = "pinyin", length = 50)
	public String getPinyin() {
		return pinyin;
	}

	public void setPinyin(String pinyin) {
		this.pinyin = pinyin;
	}

	@Basic()
	@Column(name = "linktel", length = 30)
	public String getLinkTel() {
		return linkTel;
	}

	public void setLinkTel(String linkTel) {
		this.linkTel = linkTel;
	}

	@Basic()
	@Column(name = "linkman", length = 20)
	public String getLinkMam() {
		return linkMam;
	}

	public void setLinkMam(String linkMam) {
		this.linkMam = linkMam;
	}

	@Basic()
	@Column(name = "address", length = 50)
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	
	
}
